import { onMounted, ref } from 'vue';
import axios from 'axios';

export default function GetBeautys(){
  const imgUrl = ref('');
  const getBeauty = async () => {
    const result = await axios.get(
      `https://v.api.aa1.cn/api/pc-girl_bz/index.php?wpon=json`
    );
    imgUrl.value = result.data.img;
  };

  onMounted(() => {
    console.log('鼠标位置初始化！');
  });


  return {getBeauty,imgUrl}
}


